//===============================================================================
// Microsoft patterns & practices
// Web Client Software Factory
//-------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//-------------------------------------------------------------------------------
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================
using System;

namespace WCSFContrib.PageFlow
{
	/// <summary>
	/// Creates IPageFlow instances.
	/// </summary>
	public interface IPageFlowFactory : IDisposable
	{
		/// <summary>
		/// Creates an instance of a PageFlow with the specified <see cref="Type"/>.
		/// </summary>
		/// <param name="pageFlowType">The page flow type to create.</param>
		/// <param name="instanceId">The instance id of the <see cref="IPageFlow"/>.</param>
		/// <returns>An instance of a <see cref="IPageFlow"/>.</returns>
		IPageFlow GetPageFlow(Type pageFlowType, Guid instanceId);

		/// <summary>
		/// Creates an instance of a PageFlow with the specified <see cref="Type"/>.
		/// </summary>
		/// <param name="pageFlowType">The page flow type to create.</param>
		/// <returns>An instance of a <see cref="IPageFlow"/>.</returns>
		IPageFlow GetPageFlow(Type pageFlowType);
	}
}
